home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8757 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: lrz-muenchen.de!news
  2. From: watzka@stat.uni-muenchen.de (Kurt Watzka)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Can C++ run DOS .exe files?
  5. Date: 6 Mar 1996 09:15:29 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4hjl3h$d1o@sparcserver.lrz-muenchen.de>
  9. References: <Pine.SUN.3.91.960302145426.22358A-100000-100000-100000-100000@wally.uofport.edu> <313CAF5E.5207@cedarville.edu>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. Tim Hansell <hansellt@cedarville.edu> writes:
  13.  
  14. >Paul George wrote:
  15. >> I'm involved in a project which requires C++ to call a DOS executable
  16. >> file, and then return back to the C++ program upon finishing?
  17. >> 
  18.  
  19. >It's not a question of C++ having the facility to "shell" to DOS, but
  20. >rather does the compiler you are using supply a library call which
  21. >can call the DOS function which starts a program and then waits until it
  22. >is finished.
  23.  
  24. >I would say, you could probably write a C++ callable assembly routine
  25. >to do what you wanted, but it all depends upone the compiler you are
  26. >using.
  27.  
  28. I'd say system() is still in the standard C library, and afaik, this
  29. is true for the current draft of the C++ standard, too (see documentation
  30. for the header <cstdlib>)
  31.  
  32. Kurt
  33. -- 
  34. | Kurt Watzka                             Phone : +49-89-2180-6254
  35. | watzka@stat.uni-muenchen.de
  36. | ua302aa@sunmail.lrz-muenchen.de
  37.  
  38.